package my.ts.code.viewgroup;

import my.ts.code.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class LotteryItem extends LinearLayout {

	TextView titletv, contenttv;

	public LotteryItem(Context context, String title, String content) {
		super(context);
		LayoutInflater li = (LayoutInflater) this.getContext()
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		li.inflate(R.layout.lottery_item, this, true);

		titletv = (TextView) findViewById(R.id.title);
		titletv.setText(title);

		contenttv = (TextView) findViewById(R.id.content);
		if (content != null)
			contenttv.setText(content);

	}

}
